Skip to content

fix(policy-kit): increase timeout for generator tests that spawn child processes#700

Merged
jithinraj merged 3 commits into
mainfrom
fix/policy-kit-generator-test-timeout
Apr 22, 2026
Merged

fix(policy-kit): increase timeout for generator tests that spawn child processes#700
jithinraj merged 3 commits into
mainfrom
fix/policy-kit-generator-test-timeout

Conversation

@jithinraj
Copy link
Copy Markdown
Member

Summary

The generator.test.ts tests that call execSync('pnpm generate:profiles:check') and execSync('pnpm generate:profiles') were hitting the default 5000ms Vitest timeout on CI runners. Locally they complete in ~2.5s but cold CI runners with pnpm startup overhead exceed 5s.

Scope

  • Add { timeout: 30000 } to the two it blocks that spawn child processes in packages/policy-kit/tests/generator.test.ts.
  • No logic change.

Validation

Tests pass locally. 30s timeout is well above the worst-case CI runner cold-start time.

@jithinraj jithinraj merged commit 844ce8d into main Apr 22, 2026
20 checks passed
@jithinraj jithinraj deleted the fix/policy-kit-generator-test-timeout branch April 22, 2026 12:24
jithinraj added a commit that referenced this pull request May 6, 2026
The "1,000 issuances produce 1,000 unique jti values" property test in
packages/protocol/__tests__/jti-collision.property.test.ts performs 1,000
sequential issueWire02 + verifyLocal round-trips. Local runs complete in
~3s on a warm cache, but the rollback-path matrix CI lane (Node 24, flag
0) hit the Vitest 5s default and timed out on a cold runner.

Raise the per-test timeout to 30,000ms via the third argument to it().
This mirrors the v0.12.14 #700 cold-CI timeout raise pattern for the
policy-kit generator tests. Test logic, assertions, and behavior are
unchanged; only the wall-clock budget is increased to absorb cold-cache
variance.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant